<template>
		<div>
			<component 
				v-for="(item, index) in getRealComponentsList[0][1]" 
				v-sdrag="{componentName: item.componentName, handleType: 'sort', index}" 
				:is="item.componentName" 
				:key="index" 
				:config="item"
				:data-id="item.id" 
				:dataList="dataStore[item.componentName][item.id]"
				:part="1">
			</component>
		</div>
</template>
<script>
	import axios from "axios";
	import initData from "../../utils/lxn/handleData";
	import GiftBuyCarousel from "../../components/GiftBuyCarousel/_index";
	import { mapGetters, mapMutations } from "vuex";
	// import HomeNotice from "../../components/HomeNotice/_index";
	// import HomeCarousel from "../../components/HomeCarousel/_index";
	// import UserCard from "../../components/UserCard/_index";
	// import NewZone from "../../components/NewZone/_index";
	// import ProductItemNew from "../../components/ProductItemNew/_index";
	// import FeaturedGoodsNew from "../../components/FeaturedGoodsNew/_index";
	// import FirstClassifyNew from "../../components/FirstClassifyNew/_index";
	// import GuessYouLike from "../../components/GuessYouLike/_index"
	// import ActivitiesTwoPro from "../../components/activitiesTwoPro/_index";
	// import ActivitiesOnePro from "../../components/activitiesOnePro/_index";
	// import ActivitiesNinePro from "../../components/activitiesNinePro/_index";
	// import ActivitiesThreePic from "../../components/activitiesThreePic/_index";
	// import Activitiesbanner from "../../components/activitiesbanner/_index";
	// import ActivitieCoupons from "../../components/ActivitieCoupons/_index";
	// import ActivitieCoupons2 from "../../components/ActivitieCoupons2/_index";
	export default {
		data() {
			return {
			}
		},
		components: {
			GiftBuyCarousel,
			// HomeCarousel,
			// HomeNotice,
			// UserCard,
			// NewZone,
			// ProductItemNew,
			// FeaturedGoodsNew,
			// FirstClassifyNew,
			// ActivitiesTwoPro,
			// ActivitiesOnePro,
			// ActivitiesNinePro,
			// ActivitiesThreePic,
			// Activitiesbanner,
			// ActivitieCoupons,
			// ActivitieCoupons2,
			// GuessYouLike
		},
		methods: {
			//请求模板轮播配置的缓存数据
			getCarsouleData(isRefresh = false){
				initData(isRefresh);
			},
		},
		computed: {
			...mapGetters("xxy", {
				dataStore: "getDataStore"
			}),
			...mapGetters("gw", ["getRealComponentsList"]),
		},
		watch: {},
		mounted() {
			this.getCarsouleData()
		},
	}
</script>

<style>
</style>